import request from '@/utils/request'

export const listJobByPid = (jobPid) => {
	return request({
		url: '/plan/v9/planJobExt/listJobByPid?jobPid=' + jobPid,
		method: 'get'
	})
}

export const getPcpListByProcId = (procId, kzh) => {
	return request({
		url: '/development/v9/planIntegrates/getPcpListByProcId',
		method: 'get',
		data: {
			procId: procId,
			kzh: kzh,
		}
	})
}


export const pcpGetMoList = (mo) =>{
  return request({
    url: '/development/v9/planIntegrates/getPcpProcessListByJobCode',
    method: 'get',
    params: {
      mo,
    }
  })
}


export const savePcpRecord = (json) =>{
  return request({
    url: '/development/v9/planIntegrates/savePcpRecord',
    method: 'post',
    data: json
  })
}

export const pcpGetList = (mo) =>{
  return request({
    url: '/development/v9/pcp/pcpGetList',
    method: 'get',
    params: {
      mo,
    }
  })
}


export const syncBomPcpData = (id) =>{
  return request({
    url: '/plan/v9/tBomProcessFCServer/syncBomPcpData',
    method: 'get',
    params: {
      id,
    }
  })
}

